Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@vue/babel-sugar-v-on
Advanced tools
Syntactic sugar for v-on in JSX.
Install the dependencies:
# for yarn:
yarn add @vue/babel-sugar-v-on
# for npm:
npm install @vue/babel-sugar-v-on --save
In your .babelrc
:
{
"plugins": ["@vue/babel-sugar-v-on"]
}
However it is recommended to use the configurable preset instead.
This plugin adds v-on to the JSX and tries to mirror the same behaviour as in vue-template-compiler, with a few differences:
_
) instead of dot (.
) for modifiers (vOn:click_prevent={this.test}
)vOn
) in JSX, but you can use kebab-case too (v-on
).export default {
methods: {
test() {
console.log('Hello World')
},
},
render(h) {
return (
<div>
<a href="https://vuejs.org" vOn:click={this.test}>Vue</a>
</div>
)
},
}
FAQs
Babel syntactic sugar for v-model support in Vue JSX
The npm package @vue/babel-sugar-v-on receives a total of 501,890 weekly downloads. As such, @vue/babel-sugar-v-on popularity was classified as popular.
We found that @vue/babel-sugar-v-on demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.